<!--
 * @Description: 用户协议
 * @Author: rcc
 * @Date: 2024-08-25 11:10:18
 * @FilePath: /rc-recruitment/pages/user/pact/pact.vue
-->

<template>
	<view class="">
		<RcNavigation title="用户协议" />

		<view class="p-a20">
			<rich-text class="text-500-330" :nodes="pact"></rich-text>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import { ref } from 'vue'
	import { onLoad } from '@dcloudio/uni-app'

	import RcNavigation from '@/components/navigation.vue'

	const pact = ref('')

	onLoad(() => {
		getPact()
	})

	const getPact = async () => {
		uni.showLoading({ title: '加载中...', mask: true })

		const params = { type: 1 }

		const res = await uni.$u.get('/user/content', params)

		if (res.code == 1) {
			pact.value = res.data.content
		} else {
			uni.$u.toast(res.msg)
		}

		uni.hideLoading()
	}
</script>

<style lang="scss">
	page {
		background-color: $page-color-4;
	}
</style>

<style lang="scss" scoped></style>